package com.monkeyk.os.domain.rs;

import com.monkeyk.os.domain.oauth.AccessToken;
import com.monkeyk.os.domain.oauth.ClientDetail;
import com.monkeyk.os.domain.shared.Repository;

/**
 * 2015/10/7
 *
 * @author Shengzhao Li
 */
public interface OAuthRSRepository extends Repository {

    /**
     * @param tokenId
     * @return
     */
    AccessToken findAccessTokenByTokenId(String tokenId);

    /**
     * @param clientId
     * @param resourceIds
     * @return
     */
    ClientDetail findClientDetailsByClientIdAndResourceIds(String clientId, String resourceIds);
}